package com.igeek.collateral.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 出库记录
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("outbound")
@ApiModel(value="Outbound对象", description="出库记录")
public class Outbound implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "出库记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "出库单号")
    @TableField("num")
    private String num;

    @ApiModelProperty(value = "押品编号ID")
    @TableField("collateral_id")
    private Integer collateralId;

    @ApiModelProperty(value = "出库类型 0：正常出库 1：置换出库 2：临时出库 ")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "出库说明")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "出库时间")
    @TableField("date")
    private Date date;

    @ApiModelProperty(value = "出库状态 0：未出库  1：已出库  ")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "出库申请人  Member会员")
    @TableField("apply_staff")
    private String applyStaff;

    @ApiModelProperty(value = "出库审批人  资产销售员")
    @TableField("audit_staff")
    private String auditStaff;

    @ApiModelProperty(value = "出库审批结果 0：未通过  1：通过")
    @TableField("result")
    private Integer result;

    @ApiModelProperty(value = "版本号  乐观锁")
    @TableField("version")
    private Integer version;

    @ApiModelProperty(value = "是否删除  0：未删除  1：已删除")
    @TableField("is_deleted")
    private Integer isDeleted;


}
